home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
026-050
/
scopedisk45
/
simple
/
simple.txt
< prev
next >
Wrap
Text File
|
1995-03-18
|
1KB
|
24 lines
/* sample.txed
by Jim Ventola
This macro goes through a file in TxED+ and adds a message and a CR
at the end of every line.
It shows how to do a repeating operation on a text file until
the EOF.
Note: TxEd looks for macros in the Directory it was called from, so be
sure to use full pathname to this macro if it is in another directory. */
X = 0 /* init x, which will hold system variable rc */
OPTIONS RESULTS /* this tells interpreter to request a result string
when it issues a command to a host (manual p32)*/
TOP /* cursor to top of file in TxEd */
DO UNTIL X = 1 /* set up the loop */
EOL /* go to end of line */
I "This is a test *N" /*print message and then add a carriage return */
D /* cursor down a line */
STATUS L /* check to see what line we are on;
rc will be 1 at EOF */
x = rc /* set x to value of RC for loop to check
for End of File */
END